﻿using System;
using System.Linq;
using System.Xml.Linq;
using System.Collections.Generic;

namespace CodeCounsel.SharePoint.RibbonDesigner.Model
{
    [XName("RibbonTemplates", Namespaces.CommandUIText)]
    public class RibbonTemplates
        : NamedDomainElement
    {
        public IEnumerable<GroupTemplate> GroupTemplates
        {
            get { return Children.OfType<GroupTemplate>(); }
        }

        public RibbonTemplates(XElement dataModel, DomainModelSource source)
            : base(dataModel, source)
        {
        }

        public RibbonTemplates()
        {
        }
    }
}
